﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PokerClient.Connection.CommandHandlers;

namespace PokerClient.Commands.CommandFactories
{
	class turnHandler : absHandler
	{
		private VisualDisp.Table table;
		//private String message = " ";
		public turnHandler(VisualDisp.Table table)
		{
			// TODO: Complete member initialization
			this.table = table;
		}

		public override void assignCommand(string commands)
		{
			this.commands = commands.Split(' ');
		}

		public override string work()
		{
			return ("working");
		}

		public override void analyze()
		{
			table.turn(commands[1], commands[2]);
		}
	}
}
